﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BonsaiScrum.Core.Domain;
using FluentNHibernate.Mapping;
using BonsaiScrum.Core.Query;
using BonsaiScrum.Data.CustomTypes;

namespace BonsaiScrum.Data.Mappings
{
    public class UserReportMap : ClassMap<UserReport>
    {
        public UserReportMap()
        {
            Table("[User]");

            Id(x => x.Id, "UserId");
            Map(x => x.FirstName);
            Map(x => x.LastName);
            Map(x => x.UserName, "Username");
            Map(x => x.Password);
            Map(x => x.Active, "ActiveStatus");
            Map(x => x.MaximumAuthorizedPermissionLevel, "PermissionLevel")
                .CustomType<PermissionLevelType>();
        }
    }
}
